<tr id="<?= $this->getAsyncId() ?>">
    <td>
        <? if ( $this->desasignable ): ?>
            <form action="." method="post">
                <?= $this->asyncFormEvent( 'unasign' ) ?>
                <input type="submit" value="desasignar" />
            </form>
            <!-- @TODO aqui puedo poner un formulario con diferentes niveles -->
        <? else: ?>

            <? if ( $this->administrator ): ?>
                <form action="." method="post">
                    <?= $this->asyncFormEvent( 'downgrade' ) ?>
                    <input type="submit" value="no admin" />
                </form>
            <? else: ?>
                <form action="." method="post">
                    <?= $this->asyncFormEvent( 'promote' ) ?>
                    <input type="submit" value="hacer admin" />
                </form>
            <? endif; ?>

        <? endif; ?>

    </td>
    <td><?= htmlspecialchars( $this->fiscal_id ) ?></td>
    <td><?= htmlspecialchars( $this->full_name ) ?></td>
    <td>
        <? if ( !$this->edit ): ?>
            <a href="<?= $this->asyncUrlEvent( 'editar' ) ?>"> editar </a>
        <? else: ?>
            <form action="." method="post"  accept-charset="UTF-8" onsubmit="return comprobar_formulario(<?= $this->id ?>, this)">
                <?= $this->asyncFormEvent( 'editar' ) ?>
                <label for="name_<?= $this->id ?>"></label><input type="text" name="name" id="name_<?= $this->id ?>" value="<?= htmlspecialchars( $this->name ) ?>" />
                <label for="first_surname_<?= $this->id ?>"></label><input type="text" name="first_surname" id="first_surname_<?= $this->id ?>" value="<?= htmlspecialchars( $this->form_first_surname ) ?>" />
                <label for="second_surname_<?= $this->id ?>"></label><input type="text" name="second_surname" id="second_surname_<?= $this->id ?>" value="<?= htmlspecialchars( $this->form_second_surname ) ?>" />
                <label for="fiscal_id_<?= $this->id ?>"></label><input type="text" name="fiscal_id" id="fiscal_id_<?= $this->id ?>" value="<?= htmlspecialchars( $this->form_fiscal_id ) ?>" />
                <label for="username_<?= $this->id ?>"></label><input type="text" name="username" id="username_<?= $this->id ?>" value="<?= htmlspecialchars( $this->form_username ) ?>" />
                <label for="password_<?= $this->id ?>"></label><input type="password" name="password" id="password_<?= $this->id ?>" value="" />
                <label for="repassword_<?= $this->id ?>"></label><input type="password" name="repassword" id="repassword_<?= $this->id ?>" value="" />
                <input type="hidden" name="quote_update" value="0" />
                <input type="submit" value="guardar" />
            </form>
        <? endif; ?>
    </td>
    <td>
        <? if ( !$this->edit ): ?>
            <form action="." method="post"  accept-charset="UTF-8" onsubmit="return confirm('¿Desea elimnar la organizacion con CIF: <?= self::JSEncoding( $this->fiscal_id ) ?>?')">
                <?= $this->asyncFormEvent( 'eliminar' ) ?>
                <input type="submit" value="eliminar" />
            </form>
        <? endif; ?>
    </td>

</tr>